<template>
    <div class="block" style="width: 1000px">
        <span class="demonstration"></span>
        <el-carousel height="270px">
            <el-carousel-item v-for="item in images" :key="item">
                <img :src="item" alt="" height="270px" width="1000px" />
            </el-carousel-item>
        </el-carousel>
    </div>
</template>

<script setup>
import banner1 from "@/assets/images/banner/banner1.jpg";
import banner2 from "@/assets/images/banner/banner2.jpg";
import banner3 from "@/assets/images/banner/banner3.jpg";
import banner4 from "@/assets/images/banner/banner1.png";
import banner5 from "@/assets/images/banner/banner2.png";
import banner6 from "@/assets/images/banner/banner3.png";
import { ref } from "vue";
const images = ref([
    banner1,
    banner2,
    banner3,
    banner4,
    banner5,
    banner6,
])
</script>

<style scoped>
.el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
}

.el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
    background-color: #d3dce6;
}
</style>